package com.cdtu.mapper;

import com.cdtu.entity.RUserCertify;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Sakura
* @description 针对表【r_user_certify】的数据库操作Mapper
* @createDate 2023-01-13 16:27:40
* @Entity com.cdtu.entity.RUserCertify
*/

@Mapper
public interface RUserCertifyMapper extends BaseMapper<RUserCertify> {
    List<Long> findByCertify_id(@Param("certify_id") long certify_id);

    List<Long> findByUserId(@Param("user_id") long user_id);

    String findImageSrcByUserIdAndCertifyId(@Param("userId") Long userId, @Param("certifyId") Long certifyId);

    RUserCertify findImageSrcAndIdByUserIdAndCertifyId(@Param("userId") Long userId, @Param("certifyId") Long certifyId);

    boolean removeByUid(@Param("uid") long uid);
}




